<template>
   <div>
      <!-- navbar -->
      <MyNavBar></MyNavBar>

      <!-- <h3 class="title">资讯页</h3> -->
      <div v-html="content"></div>
   </div>
</template>

<script>
import { getNews } from "@api/newsApi";
import MyNavBar from "@components/MyNavBar.vue";
export default {
   components: {
      MyNavBar,
   },
   data() {
      return {
         content: null,
      };
   },

   mounted() {
      getNews().then(content => (this.content = content));
   },
};
</script>

<style>
.title {
   text-align: center;
   margin: 0;
   padding: 10px;
   background-color: #eee;
}
</style>
